<%-- 
    Document   : employeemaster
    Created on : Sep 24, 2012, 8:21:58 AM
    Author     : angel
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Employee Master</title>
    </head>
    <body>
        <form action="employeemaster_db.jsp" method="post">
        <table>            
            <tr>
                <td>First Name</td>
                <td>: <input type="text" name="emp-first-name" id="emp-first-name"/></td>
            </tr>
            <tr>
                <td>Middle Name</td>
                <td>: <input type="text" name="emp-middle-name" id="emp-middle-name"/></td>
            </tr>
            <tr>
                <td>Last Name</td>
                <td>: <input type="text" name="emp-last-name" id="emp-last-name"/></td>
            </tr>
            <tr>
                <td>Mother Name</td>
                <td>: <input type="text" name="emp-mother-name" id="emp-mother-name"/></td>
            </tr>
            <tr>
                <td>Cast</td>
                <td>: <input type="text" name="emp-cast" id="emp-cast"/></td>
            </tr>
            <tr>
                <td>Cast Category</td>
                <td>: <select name="emp-cast-category" id="emp-cast-category"> 
                        <option value="">Select Category</option>
                        <option value="open">OPEN</option>
                        <option value="obc">OBC</option>
                        <option value="sc">SC</option>
                        <option value="st">ST</option> 
                        <option value="other">Other</option>
                    </select></td>
            </tr>
            <tr>
                <td>Birth Date</td>
                <td>: <input type="date" name="emp-birth-date" id="emp-birth-date"/></td>
            </tr>
            <tr>
                <td><h4>Birth Place </h4></td>
            </tr>
            <tr>
                <td>City</td>
                <td>: <input type="text" name="emp-birth-city" id="emp-birth-city"/></td>
            </tr>
            <tr>
                <td>State</td>
                <td>: <input type="text" name="emp-birth-state" id="emp-birth-state"/></td>
            </tr>
            <tr>
                <td>Country</td>
                <td>: <input type="text" name="emp-birth-country" id="emp-birth-country"/></td>
            </tr>              
            <tr>
                <td>Blood Group</td>
                <td>: <input type="text" name="emp-bloodgroup" id="emp-bloodgroup"/></td>
            </tr>
            <tr>
                <td><h4>Address</h4></td>
            </tr>
            <tr>
                <td>Present</td>
                <td>: <textarea name="emp-present-address" id="emp-present-address"></textarea></td>
            </tr>
            <tr>
                <td>Permanent</td>
                <td>: <textarea name="emp-permanent-address" id="emp-permanent-address"></textarea></td>
            </tr>
            <tr>
                <td><h4>Permanent Address</h4></td>
            </tr>
            <tr>
                <td>City</td>
                <td>: <input type="text" name="emp-permanent-city" id="emp-permanent-city"/></td>
            </tr>
            <tr>
                <td>State</td>
                <td>: <input type="text" name="emp-permanent-state" id="emp-permanent-state"/></td>
            </tr>
            <tr>
                <td>Country</td>
                <td>: <input type="text" name="emp-permanent-country" id="emp-permanent-country"/></td>
            </tr>            
            <tr>
                <td>Pincode</td>
                <td>: <input type="text" name="emp-permanent-pincode" id="emp-permanent-pincode"/></td>
            </tr>
            <tr>
                <td>Nationality</td>
                <td>: <input type="text" name="emp-nationality" id="emp-nationality"/></td>
            </tr>
            <tr>
                <td>Religion</td>
                <td>: <input type="text" name="emp-religion" id="emp-religion"/></td>
            </tr>
            <tr>
                <td><h4>Contact No</h4></td>
            </tr>
            <tr>
                <td>Employee</td>
                <td>: <input type="text" name="emp-contact-no" id="emp-contact-no"/></td>
            </tr>
            <tr>
                <td>Alternative</td>
                <td>: <input type="text" name="emp-alter-no" id="emp-alter-no"/></td>
            </tr>
            <tr>
                <td>Date of Joining</td>
                <td>: <input type="date" name="emp-joining-date" id="emp-joining-date"/></td>
            </tr>
            <tr>
                <td>Total No Of Subjects:</td>
                <td>: <input type="text" name="emp-total-subjects" id="emp-total-subjects"/></td>
            </tr>
            <tr>
                <td>Standard:</td>
                <td>: <select name="emp-standard" id="emp-standard">                         
                        <option value="">Select Standard</option>
                        <%
                        for(int i=1;i<11;i++)
                        out.println("<option value="+i+">"+i+"</option>");
                        %>
                    </select></td>
            </tr>
            <tr>
                <td>Subject:</td>
                <td>: 
                    <select name="emp-subject" id="emp-subject"> 
                        <option value="">Select Subject</option>
                        <option value="1">1</option>
                        <option value="2">2</option>
                        <option value="3">3</option>
                        <option value="4">4</option> 
                        <option value="5">5</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td><h4>Qualification:</h4></td>
            </tr>
            <tr>
                <td>Degree</td>
                <td>Percentage</td>
                <td>School/College/University</td>
                <td>Passing Year</td>
            </tr>
            <tr>
                <td><input type="text" name="emp-qualification-degree" id="emp-qualification-degree"/></td>
                <td><input type="text" name="emp-qualification-per" id="emp-qualification-per"/></td>
                <td><input type="text" name="emp-qualification-scu" id="emp-qualification-scu"/></td>
                <td><input type="text" name="emp-qualification-year" id="emp-qualification-year"/></td>
            </tr>
            <tr>
                <td><h4>Experience:</h4></td>
            </tr>
            <tr>
                <td>Institute Name</td>
                <td>Duration</td>
                <td>Job Description</td>
            </tr>
            <tr>
                <td><input type="text" name="emp-experience-inst" id="emp-experience-inst"/></td>
                <td><input type="text" name="emp-experience-duration" id="emp-experience-duration"/></td>
                <td><textarea name="emp-experience-jobdesc" id="emp-experience-jobdesc"></textarea></td>
            </tr>
            
            <tr>
                <td>Remarks</td>
                <td>: <textarea name="emp-remark" id="emp-remark"></textarea></td>
            </tr>
            <tr>
                <td><input type="submit" value="Submit"/></td>
            </tr>
            
        </table>
        </form>
                    
        <%
        try{
            String msg=application.getAttribute("msg").toString();
            
            if(msg.equals("true"))
            {
        %>       
                <%= msg %>
        <%        
            }
            else
            {
        %>        
                <%= msg %>
        <%        
            } 
            application.removeAttribute("msg");
        }
        catch(Exception e) {}
        %>
                    
        </body>
</html>